//
//  STEGlobal.m
//  ste
//
//  Created by iRDC on 6/29/13.
//  Copyright (c) 2013 Lekima. All rights reserved.
//

#import "STEGlobal.h"

@implementation STEGlobal
+ (BOOL) checkLoggin
{
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    BOOL logged = [userDefault boolForKey:LOGGIN_KEY];
    return logged == LOGGED;
}
+ (void) saveLogginState: (BOOL) loggin
{
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault setBool:loggin forKey:LOGGIN_KEY];
}
@end
